diff options
Diffstat (limited to 'tests/cassettes/test_media_post[True].yaml')
-rw-r--r-- | tests/cassettes/test_media_post[True].yaml | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/tests/cassettes/test_media_post[True].yaml b/tests/cassettes/test_media_post[True].yaml index d15b443..333bf47 100644 --- a/tests/cassettes/test_media_post[True].yaml +++ b/tests/cassettes/test_media_post[True].yaml | |||
@@ -1,13 +1,13 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: !!binary | | 3 | body: !!binary | |
4 | LS1hMDRiYjUxYzFmY2U0OWVhOWRkM2FhYzllMzI2MTdmYQ0KQ29udGVudC1EaXNwb3NpdGlvbjog | 4 | LS0xZjg5MTlkMTJiZTk0MjRiOGQ0ZjYyOTAxMmY0ODJhNw0KQ29udGVudC1EaXNwb3NpdGlvbjog |
5 | Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u | 5 | Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u |
6 | eSB3YWxrDQotLWEwNGJiNTFjMWZjZTQ5ZWE5ZGQzYWFjOWUzMjYxN2ZhDQpDb250ZW50LURpc3Bv | 6 | eSB3YWxrDQotLTFmODkxOWQxMmJlOTQyNGI4ZDRmNjI5MDEyZjQ4MmE3DQpDb250ZW50LURpc3Bv |
7 | c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS1hMDRiYjUxYzFm | 7 | c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS0xZjg5MTlkMTJi |
8 | Y2U0OWVhOWRkM2FhYzllMzI2MTdmYQ0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu | 8 | ZTk0MjRiOGQ0ZjYyOTAxMmY0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VKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV | 944 | xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV |
945 | 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp | 945 | 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp |
946 | UqD/2Q0KLS1hMDRiYjUxYzFmY2U0OWVhOWRkM2FhYzllMzI2MTdmYS0tDQo= | 946 | UqD/2Q0KLS0xZjg5MTlkMTJiZTk0MjRiOGQ0ZjYyOTAxMmY0ODJhNy0tDQo= |
947 | headers: | 947 | headers: |
948 | Accept: ['*/*'] | 948 | Accept: ['*/*'] |
949 | Accept-Encoding: ['gzip, deflate'] | 949 | Accept-Encoding: ['gzip, deflate'] |
950 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 950 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
951 | Connection: [keep-alive] | 951 | Connection: [keep-alive] |
952 | Content-Length: ['53738'] | 952 | Content-Length: ['53738'] |
953 | Content-Type: [multipart/form-data; boundary=a04bb51c1fce49ea9dd3aac9e32617fa] | 953 | Content-Type: [multipart/form-data; boundary=1f8919d12be9424b8d4f629012f482a7] |
954 | User-Agent: [python-requests/2.18.4] | 954 | User-Agent: [python-requests/2.18.4] |
955 | method: POST | 955 | method: POST |
956 | uri: http://localhost:3000/api/v1/media | 956 | uri: http://localhost:3000/api/v1/media |
957 | response: | 957 | response: |
958 | body: {string: '{"id":"2","type":"image","url":"http://localhost/system/media_attachments/files/000/000/002/original/fd9bd2b4baf21d6b.jpeg?1561208594","preview_url":"http://localhost/system/media_attachments/files/000/000/002/small/fd9bd2b4baf21d6b.jpeg?1561208594","remote_url":null,"text_url":"http://localhost/media/Bu4oWaVWL84UhAVT6MM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | 958 | body: {string: '{"id":"18","type":"image","url":"http://localhost/system/media_attachments/files/000/000/018/original/1139def4417843a3.jpeg?1561237959","preview_url":"http://localhost/system/media_attachments/files/000/000/018/small/1139def4417843a3.jpeg?1561237959","remote_url":null,"text_url":"http://localhost/media/6JhBKFx9vivh8RxP5Cg","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
959 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} | 959 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} |
960 | headers: | 960 | headers: |
961 | Cache-Control: ['no-cache, no-store'] | 961 | Cache-Control: ['no-cache, no-store'] |
@@ -967,29 +967,27 @@ interactions: | |||
967 | X-Download-Options: [noopen] | 967 | X-Download-Options: [noopen] |
968 | X-Frame-Options: [SAMEORIGIN] | 968 | X-Frame-Options: [SAMEORIGIN] |
969 | X-Permitted-Cross-Domain-Policies: [none] | 969 | X-Permitted-Cross-Domain-Policies: [none] |
970 | X-Request-Id: [076b4d7e-73db-4046-866b-5a19998db05a] | 970 | X-Request-Id: [6bccea6a-1519-441c-b862-164e6a5d8b0c] |
971 | X-Runtime: ['0.398558'] | 971 | X-Runtime: ['0.306069'] |
972 | X-XSS-Protection: [1; mode=block] | 972 | X-XSS-Protection: [1; mode=block] |
973 | content-length: ['590'] | 973 | content-length: ['591'] |
974 | status: {code: 200, message: OK} | 974 | status: {code: 200, message: OK} |
975 | - request: | 975 | - request: |
976 | body: sensitive=1&status=LOL+check+this+out&media_ids%5B%5D=2 | 976 | body: sensitive=1&status=LOL+check+this+out&media_ids%5B%5D=18 |
977 | headers: | 977 | headers: |
978 | Accept: ['*/*'] | 978 | Accept: ['*/*'] |
979 | Accept-Encoding: ['gzip, deflate'] | 979 | Accept-Encoding: ['gzip, deflate'] |
980 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 980 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
981 | Connection: [keep-alive] | 981 | Connection: [keep-alive] |
982 | Content-Length: ['55'] | 982 | Content-Length: ['56'] |
983 | Content-Type: [application/x-www-form-urlencoded] | 983 | Content-Type: [application/x-www-form-urlencoded] |
984 | User-Agent: [python-requests/2.18.4] | 984 | User-Agent: [python-requests/2.18.4] |
985 | method: POST | 985 | method: POST |
986 | uri: http://localhost:3000/api/v1/statuses | 986 | uri: http://localhost:3000/api/v1/statuses |
987 | response: | 987 | response: |
988 | body: {string: '{"id":"102315366460423851","created_at":"2019-06-22T13:03:14.679Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102315366460423851","url":"http://localhost/@mastodonpy_test/102315366460423851","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eLOL | 988 | body: {string: '{"id":"102317290951865927","created_at":"2019-06-22T21:12:40.090Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102317290951865927","url":"http://localhost/@mastodonpy_test/102317290951865927","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eLOL |
989 | check this out\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 989 | check this out\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py |
990 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 990 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[]},"media_attachments":[{"id":"18","type":"image","url":"http://localhost/system/media_attachments/files/000/000/018/original/1139def4417843a3.jpeg?1561237959","preview_url":"http://localhost/system/media_attachments/files/000/000/018/small/1139def4417843a3.jpeg?1561237959","remote_url":null,"text_url":"http://localhost/media/6JhBKFx9vivh8RxP5Cg","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
991 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI | ||
992 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[{"id":"2","type":"image","url":"http://localhost/system/media_attachments/files/000/000/002/original/fd9bd2b4baf21d6b.jpeg?1561208594","preview_url":"http://localhost/system/media_attachments/files/000/000/002/small/fd9bd2b4baf21d6b.jpeg?1561208594","remote_url":null,"text_url":"http://localhost/media/Bu4oWaVWL84UhAVT6MM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | ||
993 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 991 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
994 | headers: | 992 | headers: |
995 | Cache-Control: ['no-cache, no-store'] | 993 | Cache-Control: ['no-cache, no-store'] |
@@ -1001,10 +999,10 @@ interactions: | |||
1001 | X-Download-Options: [noopen] | 999 | X-Download-Options: [noopen] |
1002 | X-Frame-Options: [SAMEORIGIN] | 1000 | X-Frame-Options: [SAMEORIGIN] |
1003 | X-Permitted-Cross-Domain-Policies: [none] | 1001 | X-Permitted-Cross-Domain-Policies: [none] |
1004 | X-Request-Id: [20aed872-3e62-4c41-941d-708f308f0e4c] | 1002 | X-Request-Id: [057e8b64-d96a-4e9a-a27e-10767dac6c89] |
1005 | X-Runtime: ['0.144382'] | 1003 | X-Runtime: ['0.123584'] |
1006 | X-XSS-Protection: [1; mode=block] | 1004 | X-XSS-Protection: [1; mode=block] |
1007 | content-length: ['2199'] | 1005 | content-length: ['1839'] |
1008 | status: {code: 200, message: OK} | 1006 | status: {code: 200, message: OK} |
1009 | - request: | 1007 | - request: |
1010 | body: null | 1008 | body: null |
@@ -1016,12 +1014,10 @@ interactions: | |||
1016 | Content-Length: ['0'] | 1014 | Content-Length: ['0'] |
1017 | User-Agent: [python-requests/2.18.4] | 1015 | User-Agent: [python-requests/2.18.4] |
1018 | method: DELETE | 1016 | method: DELETE |
1019 | uri: http://localhost:3000/api/v1/statuses/102315366460423851 | 1017 | uri: http://localhost:3000/api/v1/statuses/102317290951865927 |
1020 | response: | 1018 | response: |
1021 | body: {string: '{"id":"102315366460423851","created_at":"2019-06-22T13:03:14.679Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102315366460423851","url":"http://localhost/@mastodonpy_test/102315366460423851","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"LOL | 1019 | body: {string: '{"id":"102317290951865927","created_at":"2019-06-22T21:12:40.090Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102317290951865927","url":"http://localhost/@mastodonpy_test/102317290951865927","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"LOL |
1022 | check this out","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 1020 | check this out","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[]},"media_attachments":[{"id":"18","type":"image","url":"http://localhost/system/media_attachments/files/000/000/018/original/1139def4417843a3.jpeg?1561237959","preview_url":"http://localhost/system/media_attachments/files/000/000/018/small/1139def4417843a3.jpeg?1561237959","remote_url":null,"text_url":"http://localhost/media/6JhBKFx9vivh8RxP5Cg","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
1023 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI | ||
1024 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[{"id":"2","type":"image","url":"http://localhost/system/media_attachments/files/000/000/002/original/fd9bd2b4baf21d6b.jpeg?1561208594","preview_url":"http://localhost/system/media_attachments/files/000/000/002/small/fd9bd2b4baf21d6b.jpeg?1561208594","remote_url":null,"text_url":"http://localhost/media/Bu4oWaVWL84UhAVT6MM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | ||
1025 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 1021 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
1026 | headers: | 1022 | headers: |
1027 | Cache-Control: ['no-cache, no-store'] | 1023 | Cache-Control: ['no-cache, no-store'] |
@@ -1033,9 +1029,9 @@ interactions: | |||
1033 | X-Download-Options: [noopen] | 1029 | X-Download-Options: [noopen] |
1034 | X-Frame-Options: [SAMEORIGIN] | 1030 | X-Frame-Options: [SAMEORIGIN] |
1035 | X-Permitted-Cross-Domain-Policies: [none] | 1031 | X-Permitted-Cross-Domain-Policies: [none] |
1036 | X-Request-Id: [44dfee9f-a2d5-4136-9cc5-708330799aef] | 1032 | X-Request-Id: [cab49a96-cee2-49ce-a188-57194b74fe6a] |
1037 | X-Runtime: ['0.102598'] | 1033 | X-Runtime: ['0.196667'] |
1038 | X-XSS-Protection: [1; mode=block] | 1034 | X-XSS-Protection: [1; mode=block] |
1039 | content-length: ['2169'] | 1035 | content-length: ['1809'] |
1040 | status: {code: 200, message: OK} | 1036 | status: {code: 200, message: OK} |
1041 | version: 1 | 1037 | version: 1 |